package com.example.extend.formatter;

import org.springframework.format.Formatter;
import org.springframework.stereotype.Component;

import java.text.ParseException;
import java.util.Date;
import java.util.Locale;

public class DateFormatter implements Formatter<Date> {
    @Override
    public Date parse(String text, Locale locale) throws ParseException {
        //自己看源码模仿DateFormatter类
        //一般我们不用自己去写
        return null;
    }


    @Override
    public String print(Date object, Locale locale) {
        return null;
    }
}
